package com.r_z.service;

import com.r_z.entity.Goods;
import com.r_z.entity.Purchase;
import com.r_z.entity.PurchaseDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 周楠櫻木
 * @version 1.0
 * @date 2023/6/8
 */
@Service
public interface PurchaseService {
    List<Purchase> selectPurchase(String purchaseId, int page, int limit);
    boolean insertPurchase(Goods[] goods);
    List<PurchaseDetails> selectPurchaseDetails(String purchaseId);
    List<Purchase> selectPurchaseAll(@Param("purchaseId") String goodName);
    List<PurchaseDetails> selectStatement(String purchaseId);
}
